package com.cly.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cly.entity.ProblemOption;
import com.cly.result.JsonRequest;

import java.util.List;

/**
 * 题目选项表 服务类
 *
 * @author by 春风能解释
 * <p>
 * 2024-06-05
 */
public interface IProblemOptionService extends IService<ProblemOption> {

    /**
     * 添加选项
     *
     * @param newOptions 选项列表
     * @param type       题目类型
     * @param problemId  题目ID
     * @return JSON
     */
    JsonRequest<Integer> insertOption(List<ProblemOption> newOptions, Integer type, Long problemId);
}
